package cn.com.surker.common;

import lombok.Data;

/**
 * @Author lucky
 * @create 16:05
 * @desc
 */
@Data
public class MessageCenterException extends RuntimeException{

    private Exception exception;
    private String message;

    public MessageCenterException(String message){
        this.message = message;
        this.exception = new RuntimeException();
    }

    public MessageCenterException(String message, Exception exception){
        this.message = message;
        this.exception = exception;
    }

}
